package com.yxinmiracle.user.dao;
import com.yxinmiracle.user.pojo.Address;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/****
 * @Author:YxinMiracle
 * @Description:
 *****/

public interface AddressMapper extends Mapper<Address> {
    @Select(value="select * from tb_address where username=#{username} order by is_default desc")
    List<Address> list(String username);

}
